<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <button v-for="tab in tabs" @click="activeTab=tab">{{tab}}</button>
      <div v-if="activeTab === 'tab1'">Tab1</div>
      <div v-else-if="activeTab === 'tab2'">Tab2</div>
      <div v-else-if="activeTab === 'tab3'">Tab3</div>
    </div>
    <script src="vue.js"></script>
    <script>
        var vm = new Vue({
            el:'#app',
            data:{
             tabs:['tab1','tab2','tab3'],
             activeTab:'tab1'
            }
        });
    </script>
  </body>
</html>